<?php 
function getcon($varName)
    {
        switch($res = get_cfg_var($varName))
        {
            case 0:
            return 'NO';
            break;
            case 1:
            return 'YES';
            break;
            default:
            return $res;
            break;
        }
         
    }
?>
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>网站管理系统</title>

    <link rel="shortcut icon" href="favicon.ico"> <link href="/public/admin/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="/public/admin/css/font-awesome.css?v=4.4.0" rel="stylesheet">

    <!-- Morris -->
    <link href="/public/admin/css/plugins/morris/morris-0.4.3.min.css" rel="stylesheet">

    <!-- Gritter -->
    <link href="/public/admin/js/plugins/gritter/jquery.gritter.css" rel="stylesheet">

    <link href="/public/admin/css/animate.css" rel="stylesheet">
    <link href="/public/admin/css/style.css?v=4.0.0" rel="stylesheet"><base target="_blank">

    <!-- 全局js -->
    <script src="/public/admin/js/jquery.min.js?v=2.1.4"></script>
    <script src="/public/admin/js/bootstrap.min.js?v=3.3.5"></script>



    <!-- Flot -->
    <script src="/public/admin/js/plugins/flot/jquery.flot.js"></script>
    <script src="/public/admin/js/plugins/flot/jquery.flot.tooltip.min.js"></script>
    <script src="/public/admin/js/plugins/flot/jquery.flot.spline.js"></script>
    <script src="/public/admin/js/plugins/flot/jquery.flot.resize.js"></script>
    <script src="/public/admin/js/plugins/flot/jquery.flot.pie.js"></script>
    <script src="/public/admin/js/plugins/flot/jquery.flot.symbol.js"></script>

    <!-- Peity -->
    <script src="/public/admin/js/plugins/peity/jquery.peity.min.js"></script>
    <script src="/public/admin/js/demo/peity-demo.js"></script>

    <!-- 自定义js -->
    <script src="/public/admin/js/content.js?v=1.0.0"></script>


    <!-- jQuery UI -->
    <script src="/public/admin/js/plugins/jquery-ui/jquery-ui.min.js"></script>

    <!-- Jvectormap -->
    <script src="/public/admin/js/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
    <script src="/public/admin/js/plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>

    <!-- EayPIE -->
    <script src="/public/admin/js/plugins/easypiechart/jquery.easypiechart.js"></script>

    <!-- Sparkline -->
    <script src="/public/admin/js/plugins/sparkline/jquery.sparkline.min.js"></script>

    <!-- Sparkline demo data  -->
    <script src="/public/admin/js/demo/sparkline-demo.js"></script>
    <style>
        .ibox{
            min-height: 310px;
            background: #ffffff;
        }
        .ibox-content a{display: block;}
        a{color: #666;}
    </style>
</head>

<body class="gray-bg">
    <!-- <div style="width:100%;height:100%;background-image:url(/public/admin/images/hy.jpg);background-size:cover;background-repeat:no-repeat;"></div> -->
    <div class="wrapper wrapper-content">
        <div class="row">

            <div class="col-sm-3">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <span class="label label-success pull-right">记录</span>
                        <h5>系统信息</h5>
                    </div>
                    <!-- <div class="ibox-content">
                        <a target="_self"><h1 class="no-margins">{$data.article_num}篇</h1>
                            <small>文章数</small></a>
                    </div> -->
                    <div class="ibox-content">
                        <a target="_self"><h2 class="no-margins">常用操作</h2></a><br/>
                        <a class="J_menuItem" href="{:url('Equipment/index')}" target="_self"><h3>设备管理</h3></a>
                         <a class="J_menuItem" href="{:url('Patient/index')}" target="_self"><h3>人员列表</h3></a>
                        <a class="J_menuItem" href="{:url('Sign/index')}" target="_self"><h3>签到列表</h3></a>
                    </div>
                </div>
            </div>

            <div class="col-sm-3">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <span class="label label-success pull-right">记录</span>
                        <h5>服务器信息</h5>
                    </div>
                    <div class="ibox-content">
                        <p><small>服务器时间   <?php echo date("Y/m/d H:i")?></small></p>
                        <p><small>服务器域名/IP地址 <?php echo $_SERVER['SERVER_NAME']?>(<?php echo @gethostbyname($_SERVER['SERVER_NAME'])?>)</small></p>
                        <p><small>服务器操作系统 <?php $os = explode(" ", php_uname());?><?php echo $os[0];?></p>
                        <p><small>服务器解译引擎 <?php echo $_SERVER['SERVER_SOFTWARE']?></small></p>
                        <p><small>Web服务端口 <?php echo $_SERVER['SERVER_PORT']?></small></p>
                        <p><small>数据库版本 {$data['mysql_version'][0]['VERSION()']}</small></p>
                    </div>
                </div>
            </div>
            <div class="col-sm-3">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <span class="label label-success pull-right">记录</span>
                        <h5>PHP信息</h5>
                    </div>
                    <div class="ibox-content">
                        <p><small>PHP版本     <?php echo PHP_VERSION?></small></p>
                        <p><small>PHP运行方式   <?php echo strtoupper(php_sapi_name())?></small></p>
                        <p><small>允许最大上传文件 <?php echo getcon("upload_max_filesize")?></small></p>
                        <p><small>程序最长运行时间 <?php echo getcon("max_execution_time")?></small></p>
                        <p><small>显示错误信息 <?php echo getcon("display_errors")?></small></p>
                        <p><small>被禁用的函数 <?php echo (""==($disFuns=get_cfg_var("disable_functions")))?"无":str_replace(","," , ",$disFuns)?></small></p>
                        
                        
                    </div>
                </div>
            </div>





        </div>



    </div>


</body>

</html>